package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.mp.mapper.entity.Label;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 标签表(Label)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-27 11:47:33
 */
public interface LabelDao extends BaseMapper<Label> {
    @Update("update t_label set name=#{name} where id=#{id}")
    int updateLabName(@Param("name") String name,@Param("id") Integer id);

    @Update("update t_label set status=1 where id=#{id}")
    int updateLabStatus1(Integer id);

    @Update("update t_label set status=0 where id=#{id}")
    int updateLabStatus0(Integer id);

}

